solve a system of equations using elimination